package com.augmentum.springcloudproductservice.service;

import com.augmentum.springcloudproductservice.entity.ProductCategory;
import com.augmentum.springcloudproductservice.repository.ProductCategoryRepository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ProductCategoryService {
    @Resource
    private ProductCategoryRepository productCategoryRepository;

    public List<ProductCategory> findByCategoryType(List<Integer> types) {
        return productCategoryRepository.findByCategoryTypeIn(types);
    }
}
